<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>毕业论文选题系统</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/font-awesome.css">
    <link rel="stylesheet" href="css/animate.css">
    <link rel="stylesheet" href="css/style.css">
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/content.js"></script>
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>

    <script type="text/javascript">
	function resetValue() {
		document.getElementById("uid").value = "";
		document.getElementById("pwd").value = "";
	}
	</script>
	<script>if(window.top !== window.self){ window.top.location = window.location;}</script>
</head>

<body>
<div class="jumbotron jumbotron-fluid">
    <div class="container">
        <h1 class="display-4">毕业论文选题系统</h1>
        <p class="lead">This is a graduation thesis selection system specifically for graduates.</p>
    </div>
</div>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-8 column">
            <div class="carousel slide" id="carousel-591790">
                <ol class="carousel-indicators">
                    <li class="active" data-slide-to="0" data-target="#carousel-591790">
                    </li>
                    <li data-slide-to="1" data-target="#carousel-591790">
                    </li>
                    <li data-slide-to="2" data-target="#carousel-591790">
                    </li>
                </ol>
                <div class="carousel-inner">
                    <div class="item active">
                        <img alt="" src="img/poster1.jpg" />
                        <div class="carousel-caption">
                            <h4>
                                The Best Time Is The Youngest.
                            </h4>
                            <p>
                            This is the best youth, we should cherish the present. Do the best things at the best time.                            </p>
                        </div>
                    </div>
                    <div class="item">
                        <img alt="" src="img/poster2.jpg" />
                        <div class="carousel-caption">
                            <h4>
                            The Best Time Is Now.
                            </h4>
                            <p>
                            Graduation is the best time. Let's look back on this wonderful four years of college and think about how much we have gained.                            </p>
                        </div>
                    </div>
                    <div class="item">
                        <img alt="" src="img/poster3.jpg" />
                        <div class="carousel-caption">
                            <h4>
                            Now Is The Time To Fight.
                            </h4>
                            <p>
                            Struggle for the future, in such an era of fierce competition, we can only make life meaningful by constantly striving and keeping an ambitious mind.                            </p>
                        </div>
                    </div>
                </div> <a class="left carousel-control" href="#carousel-591790" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a> <a class="right carousel-control" href="#carousel-591790" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
            </div>
        </div>
        <div class="col-md-4 column"><br><br><br>
            <div class="btn-group">
                <form action="user" method="post">
                <input type="hidden" name="oper" value="login">
                <%Object obj = request.getAttribute("flag");
        		if(obj!=null){%>
        		<p><span class="badge badge-danger">登录信息错误！</span></p>
        		<%}%>
        		<%Object pwd = request.getAttribute("pwd");
        		if(pwd!=null){%>
        		<p><span class="badge badge-info">密码修改成功！</span></p>
        		<%}session.removeAttribute("pwd");%>
                    <div class="form-group row">
                        <label class="col-sm-4 col-form-label-sm">用户名</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" 
                            value="${uid}" name="uid"
                            id="uname" placeholder="请输入学号/工号" required="">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-4 col-form-label-sm">密码</label>
                        <div class="col-sm-8">
                            <input type="password" 
                            value="${pwd}" name="pwd"
                            class="form-control" id="pwd" required="">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-4 col-form-label-sm">用户类型</label>
                        <div class="col-sm-8">
                            <select name="type" class="form-control">
                                <option value="student" checked>学生</option>
                                <option value="teacher">教师</option>
                                <option value="admin">管理员</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row">
                        <div class="col-sm-6 col-sm-offset-9">
                            <a class="card-link demo1"><small>忘记密码</small></a>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-6 col-sm-offset-4">
                            <input type="submit" class="btn btn-primary block full-width m-b" value="登录">
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<br>
<br>
<br>
<br>
<script>
        $(document).ready(function () {

            $('.demo1').click(function () {
                swal({
                    title: "该功能尚未开启",
                    text: "十分抱歉，该功能尚未开启，如有所需，请及时联系教务管理员。"
                });
            });
        });
</script>
</body>
</html>